home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / lisp / stk-3.002 / stk-3 / STk-3.1 / Demos / Widget / Wsayings.stklos < prev    next >
Encoding:
Text File  |  1995-08-23  |  1.3 KB  |  19 lines

  1. ;;;;
  2. ;;;; STk adaptation of the Tk widget demo.
  3. ;;;;
  4. ;;;; This demonstration script creates a listbox that can be scrolled
  5. ;;;; both horizontally and vertically.  It displays a collection of
  6. ;;;; well-known sayings.
  7. ;;;;
  8. (require "Tk-classes")
  9.  
  10. (define (demo-sayings)
  11.   (let ((w (make-demo-toplevel "sayings"
  12.                    "Listbox Demonstration (well-known sayings)"
  13.                    "The listbox below contains a collection of well-known sayings.  You can scan the list using either of the scrollbars or by dragging in the listbox window with Shift key and button 2 pressed.")))
  14.  
  15.     (pack (make <Scroll-listbox> :parent w
  16.         :h-scroll-side "bottom"
  17.         :v-scroll-side "right"
  18.         :value (list "Waste not, want not" "Early to bed and early to rise makes a man healthy, wealthy, and wise" "Ask not what your country can do for you, ask what you can do for your country" "I shall return" "NOT" "A picture is worth a thousand words" "User interfaces are hard to build" "Thou shalt not steal" "A penny for your thoughts" "Fool me once, shame on you;  fool me twice, shame on me" "Every cloud has a silver lining" "Where there's smoke there's fire" "It takes one to know one" "Curiosity killed the cat" "Take this job and shove it" "Up a creek without a paddle" "I'm mad as hell and I'm not going to take it any more" "An apple a day keeps the doctor away" "Don't look a gift horse in the mouth")))))
  19.